package com.qfedu.mapper;

import com.qfedu.entity.BoxEntity;
import com.qfedu.entity.OrderEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderMapper {
    //订单生成
    public Boolean insertOrder(OrderEntity orderEntity);
    //集箱查询
    public List<BoxEntity> selectBoxBySid(int sid);
    public Boolean updateOrder(OrderEntity orderEntity);
    //查询订单个数；
    public int queryordercount(Map map);
    //单个订单查询
    public OrderEntity queryone(String oid);
    //用户订单查询
    public List<OrderEntity> queryByUid(Map map);
    //所有订单查询
    public List<OrderEntity> queryAllOrder(int omonth);

    public List<OrderEntity> queryStatisYear(int year);
    //订单删除
    public Boolean delByOid(String oid);
}
